$(function() { 
    	$("#scrollsidebar").load(window.basePath+"static/onlineCustomer/index.html",function(){
			jQuery("#onlineCustomer").attr("src",window.basePath+"static/img/kf/ico-kefu1.png").click(
					 function()
					 {
						  window.open("http://tb.53kf.com/webCompany.php?arg=10093400&style=1",window.platform);
					 }
					);
			jQuery("#platform").html(window.platform);
			$("#scrollsidebar").fix({suspend:"left",minStatue:true,durationTime:600});
		});
    	$(".footer-payment li:last").addClass("last");
        $("#kinMaxShow").kinMaxShow({
    		height:246,
    		button:{
    		switchEvent:'click',
    		showIndex:false,
    		intervalTime:5,
    		normal:{width:'16px',height:'16px',right:'45%',bottom:'8px',backgroundColor:"#000",border:"none",color:"#000",opacity:"0.3",marginRight:'24px'},
    		focus:{border:"none",opacity:"0.7",backgroundColor:"#fff",color:"#000"}
    		}			
    		}); 
        reloadUserInfo();
    	$('.side-help').delegate('[data-flag="help"]' , 'click' , function (){
    		$.alert({
	    		status : 'error',
				basicTitle : '该功能正在研发中，敬请期待！' 
			});
    	});
    	$('.side-help').delegate('[data-flag="logout"]' , 'click' , function (){
    	  	$.alert({
	    		status : 'help',
				basicTitle : '确定要退出该系统？',
				buttons : [{'flag' : 'ok' , 'name' : '确定' , 'handler' : function(){ 
					location.href=window.frontPath+"logout";
				}},{'flag' : 'cancel' , 'name' : '取消' , 'handler' : function (){
					$.none_alert();
				}}]
			});
    	});
   }); 